-- GENERATED SPELL FOR [Cataclysm Hound] --


function spell0_25599(pUnit, Event) --@Cataclysm Breath,n/a--
pUnit:FullCastSpellOnTarget(46292,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25599', 616, 1)
end

function spell1_25599(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(47399,pUnit)
pUnit:RegisterEvent('Sorts_25599', 12343, 1)
end

function Sorts_25599(pUnit, Event)
local choix_sorts_25599 = math.random(0, 1)
if choix_sorts_25599 == 0 then
pUnit:RegisterEvent('spell0_25599', 1, 1)
end
if choix_sorts_25599 == 1 then
pUnit:RegisterEvent('spell1_25599', 1, 1)
end
end

function mob25599_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25599', math.random(1500, 3000), 1)
end

function mob25599_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25599_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25599_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25599, 1, 'mob25599_Action')
RegisterUnitEvent(25599, 2, 'mob25599_Leave')
RegisterUnitEvent(25599, 3, 'mob25599_Kill')
RegisterUnitEvent(25599, 4, 'mob25599_Die')
